package create.builder;

import org.junit.Test;

/**
 * 按照文章自己理解的Builder Pattern
 * Created by hmily on 2017/9/6.
 */
public class TestMain {

    @Test
    public void testBuilderPattern(){
        ComputerBuilder a = new ComputerBuilder();
        a.setCpu("i5");
        a.setScreen("shape");
        System.out.println(a.getComputer());
    }
}
